/**
 * @description 调价单管理
 */
import request from '@/utils/request'
/**
 * @description 获取调价单
 */
export const getGoodsPrice = (data) => {
  return request({
    url: `/dealer/pzUpdatePriceM/selectUpdatePriceMByCondition`,
    method: 'post',
    data,
  })
}

/**
 * @description 根据id删除调价单（未审核）
 */
export const deleteGoodsPrice = (id) => {
  return request({
    url: `/dealer/pzUpdatePriceM/deleteUpdatePriceMById?viewUpdatePriceMById=${id}`,
    method: 'post',
  })
}

/**
 * @description 保存调价单
 */
export const saveGoodsPrice = (data) => {
  return request({
    url: `/dealer/pzUpdatePriceM/saveUpdatePriceM`,
    method: 'post',
    data,
  })
}

/**
 * @description 获取单个调价单
 */
export const getGoodsPriceById = (id) => {
  return request({
    url: `/dealer/pzUpdatePriceM/viewUpdatePriceMById?updatePriceMId=${id}`,
    method: 'post',
  })
}
